package cn.lsq.org.service;

import cn.lsq.basic.utils.PageList;
import cn.lsq.org.domain.Department;
import cn.lsq.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentService {
    List<Department> loadAll();
    Department loadById(Long id);
    void save(Department department);
    void remove(Long id);
    void update(Department department);
    PageList<Department> queryPage(DepartmentQuery departmentQuery);

    void patchDelete(Long[] ids);

    List<Department> deptTree();
}
